package com.jyu.hakkatranslation.Exception.Enums;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@AllArgsConstructor
@NoArgsConstructor
public enum LoginEnum{

    PASSWORD_ERROR(10001,"用户不存在"),
    USERNAME_ERROR(10002,"用户名错误"),
    USER_NO_EXIST(10003,"用户不存在"),
    LOGIN_SUCCESS(10000,"登录成功"),


    REGISTER_SUCCESS(20000,"注册成功"),
    REGISTER_ANSWER_INCONSISTENT(20001,"两次密码不一致"),
    REGISTER_ERROR(20001,"用户已存在");


    private Integer state;
    private String message;

}
